﻿using System.Web.Mvc;
using System.Web.Routing;
using EPiServer.Core;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.ServiceLocation;
using EPiServer.Web.Mvc; 

namespace EPiBoost.Core.Initialization
{ 
	[ModuleDependency(typeof(ServiceContainerInitialization))]
	[InitializableModule]
	public class AreaTemplateViewEngineInitializer : IInitializableModule
	{
		public void Initialize(InitializationEngine context)
		{
			if (!Configuration.Core.Initialization.AreaTemplateViewEngineEnabled)
			{
				return;
			}

			ViewEngines.Engines.Add(new Infrastructure.AreaTemplateViewEngine());
		}

		public void Uninitialize(InitializationEngine context)
	 	{
	 		
	 	}

	 	public void Preload(string[] parameters)
	 	{
	 		
	 	}
	}
}
